import request from '@/common/request'


export function listCloums(data) {
    return request({
        url: '/apiadmin/generate/selectCloums',
        method: 'post',
        data: data
    })
}


export function generateData(data) {
    return request({
        url: '/apiadmin/generate/getData',
        method: 'post',
        data: data
    })
}

export function genEdit(data) {
    return request({
        url: '/apiadmin/generate/genEdit',
        method: 'post',
        data: data
    })
}


export function addGenerate(data) {
    return request({
        url: '/apiadmin/generate/add',
        method: 'post',
        data: data
    })
}

//有1
export function getTables(data) {
    return request({
        url: '/apiadmin/generate/getTabels',
        method: 'post',
        data: data
    })
}

export function listGen(data) {
    return request({
        url: '/apiadmin/generate/index',
        method: 'post',
        data: data
    })
}

export function getImGen(data) {
    return request({
        url: '/apiadmin/generate/importTable',
        method: 'post',
        data: data
    })
}

export function buildTabel(data) {
    return request({
        url: '/apiadmin/generate/buildTabel',
        method: 'post',
        data: data
    })
}
